package com.tianji.common.filters;

import jakarta.servlet.*;
import jakarta.servlet.annotation.WebFilter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;

import java.io.IOException;

/**
 *
 */
@Slf4j
@WebFilter(filterName = "mytestFilter", urlPatterns = "/**")
@Order(Ordered.HIGHEST_PRECEDENCE)
public class MytestFilter implements Filter {
    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
        log.error("====================test");
    }
}
